package com.zjitc.backend_shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
*   @author 王新瑜
*   @date 2024/12/17 15:37
*/

@Data
@Table(name = "vueshop_admin")
@AllArgsConstructor
@NoArgsConstructor
public class Admin {
    @Id
    // 主键回填
    @KeySql(useGeneratedKeys = true)
    // 编号, 主键
    private Integer id;

    // 用户名
    private String username;

    // 密码
    private String password;

    // 盐, 用于MD5加密
    private String salt;

    // 头像
    private String avatar;
}
